package com.sc.nft.entity.req;

import com.sc.nft.enums.EcologyExpendType;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.DecimalMax;
import javax.validation.constraints.DecimalMin;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

@Data
public class AddAndUpdateCastExpendConfRequest {

    @ApiModelProperty(value = "铸造消耗id")
    private Long id;

    @ApiModelProperty(value = "铸造方式id")
    private Long ecologyCastWayConfId;

    @ApiModelProperty(value = "铸造id")
    private Long ecologyCastConfId;

    @ApiModelProperty(value = "消耗id(权益道具id)")
    private Long expendId;

    @ApiModelProperty(value = "消耗类型 ECOLOGY_POINTS:生态燃料 EQUITY_PROPS:权益道具")
    @NotNull(message = "消耗类型不能为空")
    private EcologyExpendType expendType;

    @ApiModelProperty(value = "消耗数量")
    @NotNull(message = "消耗数量不能为空")
    @DecimalMin(value = "0.01",message = "奖励数量不能小于0.01")
    @DecimalMax(value = "999999.99",message = "奖励数量不能大于999999.99")
    private BigDecimal expendCount;

}
